import Types from '@/components/CustomPage/workflow/common/types'
// import {
//   Slider,
//   Radio,
//   Color,
//   Input,
//   Switch
// } from '@/components/CustomPage/fields/widget'
import IntegralMenuComp from '../widget/integral/integralMenuComp'
import IntegralTaskComp from '../widget/integral/integralTaskComp'
import { BasicOption } from '@/components/CustomPage/apps/map/basicops'
import { Input, Slider } from '@/components/CustomPage/fields/widget'
import { DataOption } from '@/components/CustomPage/apps/map/dataops'

export default {
  /**
   * 积分菜单组件
   */
  integralMenuComp() {
    return {
      target: IntegralMenuComp,
      parameter: {
        relate: true,
        mold: 'field',
        label: '积分菜单组件',
        value: ''
      },
      option: [
        {
          title: '基础配置', fields: [
            ...BasicOption(),
            { type: Slider, option: { label: '左右边距', name: 'spacing', value: 0, max: 100, step: 1 }}
          ]
        },
        ...DataOption()
      ],
      valueType: Types.VALUETYPES.CATEGORYCHANGE
    }
  },
  /**
   * 积分任务列表组件
   */
  integralTaskComp() {
    return {
      target: IntegralTaskComp,
      parameter: {
        relate: true,
        mold: 'field',
        label: '积分任务列表',
        value: ''
      },
      option: [
        {
          title: '基础配置', fields: [
            ...BasicOption(),
            { type: Input, option: { label: '标题名称', name: 'moduleName' }}
          ]
        },
        ...DataOption()
      ],
      valueType: Types.VALUETYPES.CATEGORYCHANGE
    }
  }
}
